package cn.ronghuanet.org.service;

import cn.ronghuanet.base.util.PageInfo;
import cn.ronghuanet.org.domain.Department;
import cn.ronghuanet.org.query.DepartmentQuery;

import java.io.Serializable;
import java.util.List;

public interface IDepartmentService {
    // 增、改
    void insert(Department department);
    void update(Department department);
    // 删一个
    void delete(Serializable id);
    // 查一个
    Department selectById(Serializable id);
    // 查全部
    List<Department> selectAll();

    PageInfo queryPage(DepartmentQuery departmentQuery);

    void batchDelete(List<Long> ids);

    List<Department> getDeptTree();
}


